﻿using HandyControl.Data;
using LpbPrj.Client.ViewModels;
using System;
using System.Collections.Generic;
using System.IO;

namespace LpbPrj.Client.Data
{

    public class ConfigBase
    {
        /// <summary>
        /// 是否正常软件关机，如果是软件关机直接读取本设置，否则读取备份设置
        /// </summary>
        public bool SoftClose { get; set; } = false;

    }


    public class AppConfig : ConfigBase
    {
        public static readonly string SavePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Config", "AppConfig.json");

        /// <summary>
        /// 语言包（中文：zh-cn，英文：en）
        /// </summary>
        public string Lang { get; set; } = "zh-cn";
        /// <summary>
        /// 字体
        /// </summary>
        public string Font { get; set; } = "等线";
        /// <summary>
        /// 皮肤（浅色、深色）
        /// </summary>
        public SkinType Skin { get; set; } = SkinType.Default;

        /// <summary>
        /// 是否调试模式，展示更多的信息
        /// </summary>
        public bool Debug { get; set; } = false;
        /// <summary>
        /// 软件标题
        /// </summary>
        public string SoftTitle { get; set; } = "A超检验工具";
        /// <summary>
        /// 设备编号
        /// </summary>
        public string DeviceNo { get; set; } = "SuoerAScanTestApp";

        /// <summary>
        /// 热敏打印超时时间 s 默认10s
        /// </summary>
        public int PrintThermalTimeout { get; set; } = 8;


    }

    public class MotorPos
    {
        public int X { get; set; } = 0;
        public int Y { get; set; } = 0;
        public int Z { get; set; } = 0;
        public int H { get; set; } = 0;
    }
}